#!/bin/sh

cur_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo $cur_dir

echo '请选择你要打包的模块[编号]，（不输入则默认打包全部）'
echo '1.gateway'
echo '2.auth'
echo '3.ums'

read app

mvn clean package

if [ "$app" == "1" ]
then
  echo "******************打包gateway******************"
  cd springcloud-alibaba-gateway
  sh build.sh
elif [ "$app" == "2" ]
then
  echo "******************打包auth******************"
  sh springcloud-alibaba-oauth/build.sh
else
  echo "******************打包全部******************"
fi


